 cd "/Users/john/Dropbox/PartyDuration/Data/Replication"
use duration
 **Appendix
 
 
 **Table A1 (see bottom of file)
 
 
 **Table A2 Factor Analysis
 
 gen rparty_non_pers=rparty_pers*-1
polychoric rparty_off rparty_soc rparty_lorg predate rparty_nom rparty_non_pers if auth_sample==1
display r(sum_w)


global N = r(sum_w)

matrix r = r(R)
factormat r, n(2608) factors(3) pcf
rotate

 
 
 **Table A3
 

logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap rparty_off_n   if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", replace word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap rparty_lorg_n if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap rparty_soc_n  if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap org_index_n  if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap rparty_pers_n   if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap rparty_nom_n if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap predate_n  if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap elite_index_n if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age_n v2x_polyarchy marx_n urban ln_gdpcap rparty_nom_n org_index_n  if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "nop.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

 
 
 **Table A4
 logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap rparty_off i.cowcode   if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post noomit noemptycells
outreg2 using "fe.doc", replace word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap rparty_off) addtext(Country FE, YES, Regime Age Polynomial, YES) 

logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap rparty_lorg i.cowcode if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap rparty_lorg) addtext(Country FE, YES, Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap rparty_soc i.cowcode  if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap rparty_soc) addtext(Country FE, YES, Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap org_index i.cowcode if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap org_index) addtext(Country FE, YES, Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap rparty_pers i.cowcode  if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap rparty_pers) addtext(Country FE, YES, Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap rparty_nom i.cowcode if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap rparty_nom) addtext(Country FE, YES, Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap predate i.cowcode  if auth_sample==1 & no_party~=1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap predate) addtext(Country FE, YES, Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap elite_index i.cowcode if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap elite_index) addtext(Country FE, YES, Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age v2x_polyarchy marx urban ln_gdpcap rparty_nom org_index i.cowcode if auth_sample==1, cluster(cowcode) noomit noemptycells
margins, dydx(_all) post
outreg2 using "fe.doc", append word dec(3) label ctitle("Failure") nonotes keep(log_age v2x_polyarchy marx urban ln_gdpcap rparty_nom org_index) addtext(Country FE, YES, Regime Age Polynomial, YES)
 

 ***Table A5

 logit fail  t t2 t3  rparty_off   if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", replace word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3 rparty_lorg if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  rparty_soc  if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  org_index  if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  rparty_pers   if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  rparty_nom if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3   predate  if auth_sample==1 & no_party~=1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3   elite_index if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3   rparty_nom org_index  if auth_sample==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "min.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

 
 ***Table A6
logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap rparty_off_g   if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", replace word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap rparty_lorg_g if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label  ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap rparty_soc_g  if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap org_index_g  if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap rparty_pers_g   if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap rparty_nom_g if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap predate  if g_auth==1 & no_party~=1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap elite_index_g if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age v2x_polyarchy marx_g urban ln_gdpcap rparty_nom_g org_index_g  if g_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "g.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)





 
 
 
 
**Table A7

*Table 1
logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap rparty_off_b   if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", replace word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap rparty_lorg_b if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label  ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap rparty_soc_b  if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap org_index_b  if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap rparty_pers_b   if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap rparty_nom_b if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)

logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap predate  if b_auth==1 & no_party~=1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap elite_index_b if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)


logit fail  t t2 t3  log_age v2x_polyarchy marx_b urban ln_gdpcap rparty_nom_b org_index_b  if b_auth==1, cluster(cowcode)
margins, dydx(_all) post
outreg2 using "b.doc", append word dec(3) label ctitle("Failure") nonotes drop (t t2 t3) addtext(Regime Age Polynomial, YES)






***Table A1


keep if auth_sample==1
keep fail log_age v2x_polyarchy marx urban ln_gdpcap rparty_lorg rparty_off rparty_soc org_index rparty_pers rparty_nom predate elite_index rparty_cohes leader_nominates rparty_client ideology_hist rev   share

outreg2 using "des2.doc", replace word auto(2) sum(log) label

